<?php
/**
 * qq config file for qq connect.
 *
 * @author Zhang Jinlong <466028373@qq.com>
 * @link http://www.ijianzhi.cn
 * @copyright Copyright &copy; 2013 DianJin Soft
 */

 return array(
     /**
      * APP-ID
      */
     'appId' => '100363067',

     /**
      * APP-KEY
      */
     'appKey' => 'fbf82daa52faf64ad9ee5164e71f48ec',

     /**
      * 登录成功回调地址
      */
     'callback' => Yii::app()->getRequest()->getHostInfo().Yii::app()->urlManager->createUrl('oauth/callbackForQQ'),

     /**
      * API LIST
      */
     'scope' => 'get_user_info,add_share',

     /**
      * 获取AUTH-CODE地址
      */
     'getAuthCodeUrl' => 'https://graph.qq.com/oauth2.0/authorize',

     /**
      * 获取ACCESS-TOKEN地址
      */
     'getAccessTokenUrl' => 'https://graph.qq.com/oauth2.0/token',

     /**
      * 获取OPEN-ID地址
      */
     'getOpenIdUrl' => 'https://graph.qq.com/oauth2.0/me',

     /**
      * 获得用户基本信息地址
      */
     'getUserInfoUrl' => 'https://graph.qq.com/user/get_user_info',

     /**
      * 添加分享地址
      */
     'addShareUrl' => 'https://graph.qq.com/share/add_share',
 );